<%@ page import="com.cby.web.bean.Person" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: chenbaoyang
  Date: 2021/12/13
  Time: 5:15 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>queryAll</title>
</head>
<body>
用户信息表：
<ul>
    <%
        List<Person> personList = (List<Person>) request.getAttribute("list");
        if(personList!=null) {
            String userinfo = null;
            for (Person user : personList) {
                userinfo = user.getPid() + user.getName() + user.getPwd();
    %>
    <li>用户信息：<%=userinfo%></li>
    <%
        }
    %>

    <%}else{
        String error = "the UserList is NULL";
    %>
    <%=error%>
    <%
        }
    %>
</ul>
</body>
</html>
